package com.base.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.base.mapper.voipmapper.CallnumsMapper;
import com.base.mapper.voipmapper.CardsMapper;
import com.base.po.voip.Callnums;
import com.base.po.voip.CallnumsExample;
import com.base.po.voip.Cards;
import com.base.po.voip.CardsExample;
import com.base.service.CallNumService;
import com.base.service.CardsService;

@Service("cardsServiceImpl")
public class CardsServiceImpl implements CardsService {
	@Autowired
	private CardsMapper cardsMapper;

	@Override
	public int countByExample(CardsExample example) {
		
		return cardsMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(CardsExample example) {
		
		return cardsMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		
		return cardsMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Cards record) {
		
		return cardsMapper.insert(record);
	}

	@Override
	public int insertSelective(Cards record) {
		
		return cardsMapper.insertSelective(record);
	}

	@Override
	public List<Cards> selectByExample(CardsExample example) {
		
		return cardsMapper.selectByExample(example);
	}

	@Override
	public Cards selectByPrimaryKey(Integer id) {
		
		return cardsMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(Cards record, CardsExample example) {
		
		return cardsMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(Cards record, CardsExample example) {
		
		return cardsMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(Cards record) {
		
		return cardsMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Cards record) {
		
		return cardsMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Cards> selectByAll() {
		
		return cardsMapper.selectByAll();
	}

	@Override
	public List<Cards> selectIDAndPwd() {
		
		return cardsMapper.selectIDAndPwd();
	}

}
